import Vue from 'vue'
import App from './App.vue'
import VueRouter from "vue-router"
import router from "./router/index"
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/global.css';
import axios from 'axios'
import moment from 'moment'


axios.defaults.baseURL = "/api"
Vue.config.productionTip = false

// 使用路由插件
Vue.use(VueRouter);
Vue.use(ElementUI);
new Vue({
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this
    Vue.prototype.$http = axios
    Vue.prototype.$moment = moment
  },
  //配置全局路由器
  router: router
}).$mount('#app')
